<include file="Index/header" />
<body>
<form method="post" action="" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 人员列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="{:U('Admin/add')}"> 人员添加</a> </li>
        <li>
          <input type="text" placeholder="请输入搜索关键字" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a></li>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
        <th>身份证图片</th>
        <th>姓名</th>
        <th>身份证号</th>
        <th>性别</th>
        <th >邮箱</th>
        <th >联系电话</th>
        <th width="310">操作</th>
      </tr>

       <foreach name="list" item="vo">
        <tr>
          <td style="text-align:left; padding-left:20px;">{$vo['id']}</td>
          <td width="10%"><img src="/Uploads{$vo['id_photo']}" alt="" width="70" height="50" /></td>
          <td>{$vo['username']}</td>
          <td><font color="#00CC99">{$vo['id_code']}</font></td>
          <td><if condition="$vo['sex'] eq 1">男<else />女</if></td>
          <td>{$vo['email']}</td>
          <td>{$vo['tel']}</td>
          <td><div class="button-group"> <a class="button border-main" href="javascript:edit({$vo['id']})"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="javascript:del({$vo['id']})"><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
       </foreach>
      <tr>
        <td colspan="8"><div class="pagelist">{$page}</div></td>
      </tr>
    </table>
  </div>
</form>
<script type="text/javascript">

//搜索
function changesearch(){	
		
}

//单个删除
function del(id){
	if(confirm("您确定要删除吗?")){
        window.location.href="/Admin/Admin/delUser/userId/"+id;
	}
}
function edit(id){
    window.location.href="/Admin/Admin/editUser/userId/"+id;
}
</script>
</body>
</html>